From 795e473de754a96d7e59ed8c662ff973f5b29b12 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Sat, 17 Dec 2011 18:34:01 +0800 Subject: [PATCH] Support `nostrip' DEB_BUILD_OPTIONS --- debian/changelog | 1 + debian/rules | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index bf8d943..b7c8e99 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ opencc (0.3.0-1) unstable; urgency=low * New upstream release * Remove autotools-dev and quilt from Build-Depends + * Support `nostrip' DEB_BUILD_OPTIONS * debian/patches/fix-big-endian-build.diff: merged upstream * debian/patches/fix-new-test-cases.patch: New patch. diff --git a/debian/rules b/debian/rules index 3bc514f..c81f1fa 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,13 @@ #!/usr/bin/make -f + +ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) + BUILD_TYPE=Release +else + BUILD_TYPE=Debug +endif + %: dh $@ override_dh_auto_configure: - dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON + dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_GETTEXT:BOOL=ON -- 2.30.2